<header id="topbar" class="affix" style="top:60px;">
    <div class="topbar-left">
        <ol class="breadcrumb">
            <li class="crumb-active">
                <a href="#op/withdraw_account/">提现付费管理</a>
            </li>
        </ol>
    </div>
    <div class="topbar-right">
        <div class="ml15 ib va-m" id="toggle_sidemenu_r">
            <a href="#" class="pl5"> <i class="fa fa-sign-in fs22 text-primary"></i>
            </a>
        </div>
    </div>
</header>

<section id="content" class="animated fadeIn">
    <% if(items.length > 0){ %>
    <div class="panel overflow">
        <table class="table table-striped fs13" id="main-list">
            <thead>
                <tr class="bg-light">
                    <th>用户ID</th>
                    <th>提现方式</th>
                    <th>提现账号</th>
                    <th>提现姓名</th>
                    <th class="sortable" data-field="count">累计次数</th>
                    <th class="sortable" data-field="amount">累计金额</th>
                    <th class="sortable" data-field="created_at">提现申请时间</th>
                    <th class="sortable" data-field="updated_at">最后更新时间</th>
                </tr>
            </thead>
            <tbody class="admin-form">
                <% _.each(items, function(item){
                %>
                    <tr data-id="<%= item.id %>">
                        <td><a href="#stats/account/?id=<%= item.user_id %>"><%= item.user_id %></a></td>
                        <td><%= WITHDRAW_TYPE[item.type] %></td>
                        <td><%= item.no %></td>
                        <td><%= item.name %></td>
                        <td><%= item.count %></td>
                        <td><%= item.amount %></td>
                        <td><%= item.created_at %></td>
                        <td><%= item.updated_at %></td>
                    </tr>
                <%
                }) %>
            </tbody>
        </table>
    </div>
    <div><div class="pull-left" id="page-tips"></div><div id="paginator"></div></div>
    <% }else{ %>
    <h4 class="text-muted">无数据</h4>
    <% } %>
</section>


<!-- Start: Right Sidebar -->
<aside id="sidebar_right" class="nano" style="top: 110px;">
    <div class="p20 admin-form">
        <h4 class="mt5 text-muted fw500">过滤条件：</h4>
        <hr class="short">
        <div class="section mb15">
            <label class="field prepend-icon">
                <input title="用户ID" type="text" id="searchUid" class="gui-input" data-field="user_id" placeholder="用户ID" value="<%= searched.user_id %>">
                <input title="提现账号" type="text" id="searchNo" class="gui-input" data-field="no" placeholder="提现账号" value="<%= searched.no %>">
                <input title="提现姓名" type="text" id="searchName" class="gui-input" data-field="name" placeholder="提现姓名" value="<%= searched.name %>">
                <label class="field-icon"><i class="fa fa-tag"></i>
                </label>
            </label>
        </div>
        <h6 class="fw400">提现方式</h6>
        <div class="section mb15">
            <label class="field select">
                <select id="searchType" name="searchType" data-field="withdraw_type">
                    <option value="-1" <%= searched.withdraw_type == -1 ? 'selected' : '' %>>所有</option>
                    <option value="1" <%= searched.withdraw_type == 1 ? 'selected' : '' %>>支付宝</option>
                    <option value="0" <%= searched.withdraw_type == 0 ? 'selected' : '' %>>银行卡</option>
                    <option value="12" <%= searched.withdraw_type == 12 ? 'selected' : '' %>>qq钱包</option>
                    <option value="13" <%= searched.withdraw_type == 13 ? 'selected' : '' %>>微信</option>
                </select>
                <i class="arrow double"></i>
            </label>
        </div>
        <hr class="short">

        <div class="row">
            <div class="col-md-6">
                <button class="btn btn-primary btn-block form-control" id="search">搜索</button>
            </div>
            <div class="col-md-6">
                <button class="btn btn-default btn-block form-control" id="export">导出</button>
            </div>
        </div>

    </div>
</aside>
<!-- End: Right Sidebar -->
